******************
******************

File Name: create_pre_linkage_data.sas
Description: The first of three programs that creates the analytic dataset that matching will be performed on.

File Name: partb_linkage_final_v12.sas
Description: The second of three programs that creates the analytic dataset that matching will be performed on. This program mainly links the inpatient files to the part B files.

File Name: simul_transfer_11_02_2018.sas
Description: The third of three programs that creates the analytic dataset that matching will be performed on. This program produces the final matching dataset.

File Name: ortho_match_exact_procs_11.8.2018.R
Description: Performs the orthopedic match in both eras (traditional era (1999-2003) and modern era (2009-2013)).

File Name: gensurg_match_11.2.2018.R
Description: Performs the general surgery match in both eras.

File Name: bal_tabs_12.6.2018.R
Description: Creates the balance tables from the matched datasets.

File Name: dnd_outcomes_REDONE_11.26.2018.R
Description: Computes the outcomes (Gart's test for binary outcomes and Wilcoxon Rank-Sum test for continuous outcomes).

File Name: m_estimates_program_REDONE_11.28.2018.R
Description: Performs M-estimates for the matched datasets.











File Name: patient_match_lv_0_year.R
Description: Performs the first match of the taper (the baseline match which only matches on year).

File Name: patient_match_lv_1_year_proc.R
Description: Performs the second match of the taper (the baseline plus procedure match).

File Name: patient_match_lv_2_year_proc_er.R
Description: Performs the third match of the taper (the year plus procedure plus emergent match).

File Name: bal_tabs_lv_0.R
Description: Creates the balance table for the year match.

File Name: bal_tabs_lv_1.R
Description: Creates the balance table for the year plus procedure match.

File Name: bal_tabs_lv_2.R
Description: Creates the balance table for the year plus procedure plus emergent match.

File Name: run_all_bal_tabs.R
Description: Program that sources all of the balance table programs and runs them in sequence.

File Name: taper_outcomes_1.2.2019_FIXED.R
Description: Calculates the outcomes (McNemar tests for the binary outcomes and M-estimates for the continuous outcomes).

File Name: exterior_match_paired.R
Description: Computes the exterior match across adjacent levels of the tapers.

File Name: YS_OR_figures_v1_FIXED_4.1.2019.R
Description: Generates figure 1 and figure 2 of the manuscript.


